home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / contrib / sgml / richtext-dtd next >
Encoding:
Internet Message Format  |  1993-02-04  |  4.2 KB

  1. From: connolly@convex.com (Dan Connolly)
  2. Subject: SGML DTD for richtext
  3. Sender: usenet@news.eng.convex.com (news access account)
  4. Message-ID: <1993Feb5.021722.17450@news.eng.convex.com>
  5. Date: Fri, 5 Feb 1993 02:17:22 GMT
  6. Content-Type: multipart/mixed;
  7.     boundary=mysteryboxofun
  8. Nntp-Posting-Host: pixel.convex.com
  9. Mime-Version: 1.0
  10. Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
  11. X-Disclaimer: This message was written by a user at CONVEX Computer
  12.               Corp. The opinions expressed are those of the user and
  13.               not necessarily those of CONVEX.
  14. Lines: 139
  15.  
  16. > THIS IS A MESSAGE IN 'MIME' FORMAT.
  17. > If you are reading this, your mail reader may not support MIME.
  18. > Some parts of this message will be readable as plain text.
  19.  
  20. --mysteryboxofun
  21.  
  22. I cooked this up last weekend. It's an SGML declaration and DTD
  23. for richtext as specified by the MIME RFC. There are some constructs
  24. in SGML that aren't in MIME richtext, like A for numeric character
  25. references etc.
  26.  
  27. But heck... maybe somebody can use this.
  28.  
  29. Dan
  30.  
  31. --mysteryboxofun
  32. Content-Description: SGML document type delcaration subset for MIME RichText
  33. Content-type: text/x-sgml-DTD
  34.  
  35. <!ELEMENT richtext    O O ANY
  36.     -- OMITTAG is set to NO in the decl@@ -->
  37.  
  38. <!ENTITY % ISO-8559-X    "ISO-8559-1 |
  39.             ISO-8559-2 |
  40.             ISO-8559-3 |
  41.             ISO-8559-4 |
  42.             ISO-8559-5 |
  43.             ISO-8559-6 |
  44.             ISO-8559-7 |
  45.             ISO-8559-8 |
  46.             ISO-8559-9" >
  47.  
  48. <!ENTITY % command    "Bold|Italic|Fixed|Smaller|Bigger
  49.             |Underline|Center|FlushLeft|FlushRight
  50.             |Indent|IndentRight|Outdent|OutdentRight
  51.             |SamePage|Subscript|Superscript
  52.             |Heading|Footing|%ISO-8559-X|US-ASCII
  53.             |Excerpt|Paragraph|Signature|Comment|No-op">
  54. <!ELEMENT (%command)    - - ANY>
  55. <!ELEMENT (lt|nl|np)    - O EMPTY>
  56.  
  57. --mysteryboxofun
  58. Content-Description: Example SGML document
  59. Content-type: text/x-sgml-document-entity
  60.  
  61. <!DOCTYPE richtext SYSTEM [
  62. <!ENTITY body SYSTEM "part-2-id">
  63. ]>
  64. <richtext>
  65. &body;
  66. </richtext>
  67.  
  68. --mysteryboxofun
  69. Content-Description: a richtext (MIME term:) body or (SGML term:) entity
  70. Content-id: part-2-id
  71. Content-Type: text/richtext
  72.  
  73. <bold>Now</bold> is the time for <italic>all</italic>
  74. good men
  75.  <smaller>(and <lt>women>)</smaller> to
  76. <ignoreme></ignoreme> come
  77.  
  78. to the aid of their
  79. <nl>
  80. beloved <nl><nl>country. <comment> Stupid quote!
  81. </comment> -- the end
  82.  
  83. --mysteryboxofun
  84. Content-Description: SGML declaration for MIME RichText
  85. Content-type: text/x-sgml-declaration
  86.  
  87. <!SGML  "ISO 8879:1986"
  88.  
  89. CHARSET
  90.          BASESET  "ISO 646:1983//CHARSET
  91.                    International Reference Version (IRV)//ESC 2/5 4/0"
  92.          DESCSET  0   9   UNUSED
  93.                   9   2   9
  94.                   11  2   UNUSED
  95.                   13  1   13
  96.                   14  18  UNUSED
  97.                   32  95  32
  98.                   127 1   UNUSED
  99.     -- @@ hmm.. how do you handle all the ISO-8559 character sets? --
  100.      BASESET   "ISO Registration Number 100//CHARSET
  101.                 ECMA-94 Right Part of Latin Alphabet Nr. 1//ESC 2/13 4/1"
  102.      DESCSET   128 32 UNUSED
  103.                160 95 32
  104.                255  1 UNUSED
  105.  
  106. CAPACITY    SGMLREF
  107.         TOTALCAP    150000
  108.         GRPCAP        150000
  109.   
  110. SCOPE    DOCUMENT
  111. SYNTAX   
  112.          SHUNCHAR CONTROLS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
  113.                            19 20 21 22 23 24 25 26 27 28 29 30 31 127 255
  114.          BASESET  "ISO 646:1983//CHARSET
  115.                    International Reference Version (IRV)//ESC 2/5 4/0"
  116.          DESCSET  0 128 0
  117.          FUNCTION RE          13
  118.                   RS          10
  119.                   SPACE       32
  120.                   TAB SEPCHAR  9
  121.          NAMING   LCNMSTRT ""
  122.                   UCNMSTRT ""
  123.                   LCNMCHAR ".-"
  124.                   UCNMCHAR ".-"
  125.                   NAMECASE GENERAL YES
  126.                            ENTITY  NO
  127.          DELIM    GENERAL  SGMLREF
  128.                   SHORTREF SGMLREF
  129.          NAMES    SGMLREF
  130.          QUANTITY SGMLREF
  131.                   NAMELEN  40
  132.                   TAGLVL   100
  133.                   LITLEN   1024
  134.                   GRPGTCNT 150
  135.                   GRPCNT   64                   
  136.  
  137. FEATURES
  138.   MINIMIZE
  139.     DATATAG  NO
  140.     OMITTAG  NO
  141.     RANK     NO
  142.     SHORTTAG NO
  143.   LINK
  144.     SIMPLE   NO
  145.     IMPLICIT NO
  146.     EXPLICIT NO
  147.   OTHER
  148.     CONCUR   NO
  149.     SUBDOC   NO
  150.     FORMAL   YES
  151.   APPINFO    NONE
  152. >
  153.  
  154. --mysteryboxofun--
  155.